<<script language="javascript" type="text/javascript"
	src="<?php echo $this->load->config->item('base_url') . $this->load->config->item('inc_folder'); ?>scripts/jquery-2.0.3.js"></script>
<script type="text/javascript">
	$(function() {  
        $('#tglawal').datepicker({
			dateFormat:'yy-mm-dd',
			buttonImage:'assets/images/calendar.gif',
			buttonImageOnly : true,
			showOn : 'button'
		});  
    });  
	
	$(function() {  
        $('#tglakhir').datepicker({
			dateFormat:'yy-mm-dd',
			buttonImage:'assets/images/calendar.gif',
			buttonImageOnly : true,
			showOn : 'button'
		});  
    });  
</script>
<div id="container">

	<h1><?php //echo $nama_perusahaan; ?></h1>
	<h2><?php //echo $alamat_perusahaan; ?></h2>

	<div id="body">
		<?php
			//echo $bio;
			//echo $menu;
		?>
		<div class="cleaner_h10"></div>
		<table align="center">
			<tr align="center">
				<td>
					<?php
						//echo $paginator;
					?>
				</td>
			</tr>
		</table>
		<div class="cleaner_h10"></div>
		<table width="100%" cellpadding="3" cellspacing="0" border="1">
			<tr>
                <td width="90"><strong>Tanggal</strong></td>
                <td>:</td>
                <td width="172"><input type="text"  name="tglawal" id="tglawal" maxlength="10" value="" style="width:110px;"/></td>
                <td width="30"><strong>S/D</strong></td>
                <td width="542"><input type="text"  name="tglakhir" id="tglakhir" maxlength="10" value="" style="width:110px;"/></td>
            </tr>
            <tr>
            	<td width="75"><strong>Pilih Type</strong></td>
                <td width="11"><strong>:</strong></td>
                <td colspan="3">
                	<select name="pilihtype" id="select">
                        <option value="0">-Pilih-</option>
                        <option value="1">No Faktur</option>
                        <option value="2">No Retur</option>
                        <option value="3">Kode Barang</option>
           	  </select></td>
            </tr>
			<tr valign="top">
            	<td></td>
                <td colspan="5"><input type="submit" class="btn-kirim-login" value="Search"></td>
			</tr>
		</table>
      <div class="cleaner_h10"></div>
		<table border="1" cellpadding="3" cellspacing="0" width="100%" style=" border-collapse: collapse;" class="record" bordercolor="#CCCCCC">
			<tr style="background-color:#FFFFFF; color:#000000;" align="center">
				<td colspan="9" height="25"><strong>Laporan Retur Penjualan</strong></td>
            </tr>
			<tr style="background-color:#333; color:#FFFFFF;" align="center">
				<td>No Retur</td>
                <td>Tanggal Retur</td>
                <td>No Faktur</td>
                <td>Nama Suplier</td>
                <td>Nama Barang</td>
				<td>Quantity</td>
                <td>Amount</td>
				<td>Keterangan</td>
				<td>Nama Pembuat</td>
			</tr>
			<?php
				if($dt_barang->num_rows()>0)
				{
					foreach($dt_barang->result_array() as $db)
					{
				?>
				<tr id="<?php echo $db['ReturnNo']; ?>" class="edit_tr">
					<td><?php echo $db['ReturnNo']; ?></td>
					<td><?php echo $db['DateReturn']; ?></td>
                    <td><?php echo $db['NoFaktur']; ?></td>
                    <td><?php echo $db['KodeSupplier']; ?></td>
                    <td><?php echo $db['KodeBarang']; ?></td>
                    <td><?php echo $db['Quantity']; ?></td>
                    <td><?php echo $db['Price']; ?></td>
                    <td><?php echo $db['Keterangan']; ?></td>
                    <td><?php echo $db['CreatedBy']; ?></td>
				</tr>
				<?php
					}
				?>
				<tr valign="top">
            		<td colspan="9" align="center"><input type="submit" class="btn-kirim-login" value="Cetak"><input type="submit" class="btn-kirim-login" value="Back" onclick="javascript:window.location='<?php echo site_url('menuhomecontroller'); ?>';"></td>
               	</tr>
				<?php
				}
				else
				{
					?>
					
				<tr style="text-align:center;">
					<td colspan="9">Belum ada data</td>
				</tr>
					<?php
				}
			?>
		</table>
    	<div class="cleaner_h10"></div>
		<table align="center">
			<tr align="center">
				<td>
					<?php
						//echo $paginator;
					?>
				</td>
			</tr>
		</table>
	</div>
